<style type="text/css">
	.fly-marginTop {
		margin-left: 250px;
	}
</style>
<div class="layui-container fly-marginTop">
	<div class="fly-panel fly-panel-user" pad20>
		<div class="layui-tab layui-tab-brief" lay-filter="user">

			<div class="layui-form layui-tab-content" id="LAY_ucm" style="padding: 20px 0;">
				<div class="layui-tab-item layui-show">
					<div class="layui-form layui-form-pane">
						<form method="post">
							<div class="layui-form-item">
								<label for="L_email" class="layui-form-label">管理员账号</label>
								<div class="layui-input-inline">
									<input type="text" id="L_email" value="{$adminup.username}" disabled required
										lay-verify="required" autocomplete="off" class="layui-input">
								</div>
								<div class="layui-form-mid layui-word-aux">不可修改</div>
							</div>
							<div class="layui-form-item">
								<label for="L_username" class="layui-form-label">昵称</label>
								<div class="layui-input-inline">
									<input type="text" id="L_username" name="nickname" placeholder="请输入昵称"
										value="{$adminup.nickname}" required lay-verify="required" autocomplete="off"
										class="layui-input">
								</div>
							</div>

							<div class="layui-form-item">
								<label for="L_username" class="layui-form-label">状态</label>
								<div class="layui-input-inline">
									<select name="state" lay-verify="" style="display: block;width: inherit;height: 38px;border: 1px solid #eee;cursor: pointer;">
									  <option value="">请选择</option>
									  <option value="1" {$adminup.state == '1' ? 'selected' : ''}>可用</option>
									  <option value="0" {$adminup.state == '0' ? 'selected' : ''}>禁用</option>
									</select>
								</div>
								<!-- <div class="layui-input-inline">
									
									<select name="city" >
									  <option value="" disabled>请选择状态</option>
									  <option value="1">可用</option>
									  <option value="0">禁用</option>
									</select>
									
								</div> -->

							</div>

							<div class="layui-form-item">
								<label for="L_pass" class="layui-form-label">原密码</label>
								<div class="layui-input-inline">
									<input type="password" id="L_pass" name="password" placeholder="请输入原密码"
										lay-verify="required" autocomplete="off" class="layui-input">
								</div>
								<!-- <div class="layui-form-mid layui-word-aux">6到16个字符</div> -->
							</div>
							<div class="layui-form-item">
								<label for="L_repass" class="layui-form-label">新密码</label>
								<div class="layui-input-inline">
									<input type="newpassword" id="L_repass" name="newpassword" placeholder="请输入新密码"
										lay-verify="required" autocomplete="off" class="layui-input">
								</div>
							</div>

							<div class="layui-form-item">
								<label for="L_repass" class="layui-form-label">确认密码</label>
								<div class="layui-input-inline">
									<input type="password" id="L_repass" name="repass" placeholder="请输入确认密码"
										lay-verify="required" autocomplete="off" class="layui-input">
								</div>
							</div>

							<div class="layui-form-item">
								<label for="L_vercode" class="layui-form-label">验证码</label>
								<div class="layui-input-inline">
									<input type="text" id="L_vercode" name="vercode" required lay-verify="required"
										placeholder="请回答后面的问题" autocomplete="off" class="layui-input">
								</div>
								<div class="layui-form-mid">
									<img src="{:url('home/index/vercode')}"
										onclick="this.src = '{:url('home/index/vercode')}'" alt="captcha" />
								</div>
							</div>
							<div class="layui-form-item">
								<button class="layui-btn" lay-submit>立即修改</button>
								<a href="{:url('admin/index/adminlist')}" class="layui-btn" lay-submit>取消</a>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>

</div>
<script type="text/javascript">
	// if(res.code === 1)
	// {
	//   layer.msg('修改成功',{icon: 1},function(index){
	// 	location.href = res.url
	//   })
	// }else{
	//   layer.msg(res.msg,{icon: 5},function(){
	// 	location.href = res.url
	//   })
	// }
</script>
